﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>Login</title>
<meta charset="utf-8" />
</head>
<body>
	<h1>Login Page</h1>
	<button id="a">登录</button>

	<script src="../jquery.min.js"></script>
	<script type="text/javascript">
		var a = $("#a");
		var url = "./login";
		var param = {};
		param.name = "admin";
		param.password = "E10ADC3949BA59ABBE56E057F20F883E";
		a.on("click", function() {
			$.post(url, JSON.stringify(param), function(result) {
				if (result.status == "ok") {
					location.href = "../sys/index";
				}
			})
		});
	</script>
</body>
</html>
